<!-- 修改银行卡 -->
<form class="form-horizontal" action="member/save" method="post" id="bank_revise">
    <div class="form-group">
        <label class="col-sm-3 control-label">银行名称:</label>
        <div class="col-sm-9 pt7">
            <select class="form-control" name="bank_name" class="bank_name">
                <option v-for="bank in banks" v-model="bank.id">{{bank.name}}</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-3 control-label">收款款号:</label>
        <div class="col-sm-9">
            <input type="text" class="form-control shroff_account"  placeholder="" value="<?php echo ($data ? $data['bank_no'] : '');?>" name="bank_no">
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-3 control-label">开户行:</label>
        <div class="col-sm-9">
            <input type="text" class="form-control opening_bank"  placeholder="" name="bank_acc" value="<?php echo ($data ? $data['bank_acc'] : '');?>">
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-3 control-label">收款人:</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"  placeholder="" name="person_name" value="<?php echo ($data ? $data['person_name'] : '');?>">
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-3 control-label">停用金额:</label>
        <div class="col-sm-9">
            <input type="tel" class="form-control"  placeholder="" value="" name="money" value="<?php echo ($data ? $data['money'] : '');?>">
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-3 control-label">状态:</label>
        <div class="col-sm-9 status pt7">
            <label><input type="radio" value="<?php echo ($data ? $data['status'] : '');?>" name="restrictIP" class="radio" checked>启用</label>
            <label><input type="radio" value="<?php echo ($data ? $data['status'] : '');?>" name="restrictIP" class="radio">停用</label>
        </div>
    </div>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-3 control-label">备注:</label>
        <div class="col-sm-9">
            <input type="email" class="form-control" id="inputEmail3" placeholder="" value="" name="<?php echo ($data ? $data['remark'] : '');?>">
        </div>
    </div>
</form>
<script>
    app = new Vue({
        'el':'#bank_revise',
        'data': {
            banks: [
                {id: 1, name: '中国银行'},
                {id: 2, name: '中国建设银行'},
                {id: 3, name: '中国工商银行'}
            ]
        },
        methods: {
            get_bank_list: function() {
                axios.post('/payset/get_bank_list', {
                    id: 1335
                }).then(function (response) {
                    console.log(response);
                }).catch(function (error) {
                });
            }
        },
        created: function() {
            this.get_bank_list();
        }
    });
</script>
